佳靓[V2].js 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  1. var rule = {
  2. title: '佳靓[V2]', // csp_AppYsV2
  3. host: 'http://api.jialiangos.com:81/api.php/app/',
  4. url: 'video?tid=fyclassfyfilter&limit=20&pg=fypage',
  5. filter_url:'&class={{fl.class}}&area={{fl.area}}&lang={{fl.lang}}&letter={{fl.letter}}&year={{fl.year}}&by={{fl.by}}',
  6. filter:{
  7. "1":[{"key":"class","name":"剧情","value":[{"n":"全部","v":""},{"n":"喜剧","v":"喜剧"},{"n":"爱情","v":"爱情"},{"n":"恐怖","v":"恐怖"},{"n":"动作","v":"动作"},{"n":"科幻","v":"科幻"},{"n":"剧情","v":"剧情"},{"n":"战争","v":"战争"},{"n":"警匪","v":"警匪"},{"n":"犯罪","v":"犯罪"},{"n":"动画","v":"动画"},{"n":"奇幻","v":"奇幻"},{"n":"武侠","v":"武侠"},{"n":"冒险","v":"冒险"},{"n":"枪战","v":"枪战"},{"n":"恐怖","v":"恐怖"},{"n":"悬疑","v":"悬疑"},{"n":"惊悚","v":"惊悚"},{"n":"经典","v":"经典"},{"n":"青春","v":"青春"},{"n":"文艺","v":"文艺"},{"n":"微电影","v":"微电影"},{"n":"古装","v":"古装"},{"n":"历史","v":"历史"},{"n":"运动","v":"运动"},{"n":"农村","v":"农村"},{"n":"儿童","v":"儿童"},{"n":"网络电影","v":"网络电影"}]},{"key":"area","name":"地区","value":[{"n":"全部","v":""},{"n":"大陆","v":"大陆"},{"n":"香港","v":"香港"},{"n":"台湾","v":"台湾"},{"n":"美国","v":"美国"},{"n":"法国","v":"法国"},{"n":"英国","v":"英国"},{"n":"日本","v":"日本"},{"n":"韩国","v":"韩国"},{"n":"德国","v":"德国"},{"n":"泰国","v":"泰国"},{"n":"印度","v":"印度"},{"n":"意大利","v":"意大利"},{"n":"西班牙","v":"西班牙"},{"n":"加拿大","v":"加拿大"},{"n":"其他","v":"其他"}]},{"key":"lang","name":"语言","value":[{"n":"全部","v":""},{"n":"国语","v":"国语"},{"n":"英语","v":"英语"},{"n":"粤语","v":"粤语"},{"n":"闽南语","v":"闽南语"},{"n":"韩语","v":"韩语"},{"n":"日语","v":"日语"},{"n":"法语","v":"法语"},{"n":"德语","v":"德语"},{"n":"其它","v":"其它"}]},{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2023","v":"2023"},{"n":"2022","v":"2022"},{"n":"2021","v":"2021"},{"n":"2020","v":"2020"},{"n":"2019","v":"2019"},{"n":"2018","v":"2018"},{"n":"2017","v":"2017"},{"n":"2016","v":"2016"},{"n":"2015","v":"2015"},{"n":"2014","v":"2014"},{"n":"2013","v":"2013"},{"n":"2012","v":"2012"},{"n":"2011","v":"2011"},{"n":"2010","v":"2010"},{"n":"2009","v":"2009"},{"n":"2008","v":"2008"},{"n":"2007","v":"2007"},{"n":"2006","v":"2006"},{"n":"2005","v":"2005"},{"n":"2004","v":"2004"},{"n":"2003","v":"2003"},{"n":"2002","v":"2002"},{"n":"2001","v":"2001"},{"n":"2000","v":"2000"},{"n":"1999","v":"1999"},{"n":"1998","v":"1998"},{"n":"1997","v":"1997"},{"n":"1996","v":"1996"},{"n":"1995","v":"1995"},{"n":"1994","v":"1994"},{"n":"1993","v":"1993"},{"n":"1992","v":"1992"},{"n":"1991","v":"1991"},{"n":"1990","v":"1990"},{"n":"1989","v":"1989"},{"n":"1988","v":"1988"},{"n":"1987","v":"1987"},{"n":"1986","v":"1986"},{"n":"1985","v":"1985"},{"n":"1984","v":"1984"},{"n":"1982","v":"1982"}]}],
  8. "2":[{"key":"class","name":"剧情","value":[{"n":"全部","v":""},{"n":"古装","v":"古装"},{"n":"战争","v":"战争"},{"n":"青春偶像","v":"青春偶像"},{"n":"喜剧","v":"喜剧"},{"n":"家庭","v":"家庭"},{"n":"犯罪","v":"犯罪"},{"n":"动作","v":"动作"},{"n":"奇幻","v":"奇幻"},{"n":"剧情","v":"剧情"},{"n":"历史","v":"历史"},{"n":"经典","v":"经典"},{"n":"乡村","v":"乡村"},{"n":"情景","v":"情景"},{"n":"商战","v":"商战"},{"n":"网剧","v":"网剧"},{"n":"其他","v":"其他"}]},{"key":"area","name":"地区","value":[{"n":"全部","v":""},{"n":"内地","v":"内地"},{"n":"韩国","v":"韩国"},{"n":"香港","v":"香港"},{"n":"台湾","v":"台湾"},{"n":"日本","v":"日本"},{"n":"美国","v":"美国"},{"n":"泰国","v":"泰国"},{"n":"英国","v":"英国"},{"n":"新加坡","v":"新加坡"},{"n":"其他","v":"其他"}]},{"key":"lang","name":"语言","value":[{"n":"全部","v":""},{"n":"国语","v":"国语"},{"n":"英语","v":"英语"},{"n":"粤语","v":"粤语"},{"n":"闽南语","v":"闽南语"},{"n":"韩语","v":"韩语"},{"n":"日语","v":"日语"},{"n":"其它","v":"其它"}]},{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2023","v":"2023"},{"n":"2022","v":"2022"},{"n":"2021","v":"2021"},{"n":"2020","v":"2020"},{"n":"2019","v":"2019"},{"n":"2018","v":"2018"},{"n":"2017","v":"2017"},{"n":"2016","v":"2016"},{"n":"2015","v":"2015"},{"n":"2014","v":"2014"},{"n":"2013","v":"2013"},{"n":"2012","v":"2012"},{"n":"2011","v":"2011"},{"n":"2010","v":"2010"},{"n":"2009","v":"2009"},{"n":"2008","v":"2008"},{"n":"2007","v":"2007"},{"n":"2006","v":"2006"},{"n":"2005","v":"2005"},{"n":"2004","v":"2004"},{"n":"2003","v":"2003"},{"n":"2002","v":"2002"},{"n":"2001","v":"2001"},{"n":"2000","v":"2000"},{"n":"1999","v":"1999"},{"n":"1998","v":"1998"},{"n":"1997","v":"1997"},{"n":"1996","v":"1996"},{"n":"1995","v":"1995"},{"n":"1994","v":"1994"},{"n":"1993","v":"1993"},{"n":"1992","v":"1992"},{"n":"1991","v":"1991"},{"n":"1990","v":"1990"},{"n":"1989","v":"1989"},{"n":"1988","v":"1988"},{"n":"1987","v":"1987"},{"n":"1986","v":"1986"},{"n":"1985","v":"1985"},{"n":"1984","v":"1984"},{"n":"1982","v":"1982"}]}],
  9. "3":[{"key":"class","name":"剧情","value":[{"n":"全部","v":""},{"n":"选秀","v":"选秀"},{"n":"情感","v":"情感"},{"n":"访谈","v":"访谈"},{"n":"播报","v":"播报"},{"n":"旅游","v":"旅游"},{"n":"音乐","v":"音乐"},{"n":"美食","v":"美食"},{"n":"纪实","v":"纪实"},{"n":"曲艺","v":"曲艺"},{"n":"生活","v":"生活"},{"n":"游戏互动","v":"游戏互动"},{"n":"财经","v":"财经"},{"n":"求职","v":"求职"}]},{"key":"area","name":"地区","value":[{"n":"全部","v":""},{"n":"内地","v":"内地"},{"n":"港台","v":"港台"},{"n":"日韩","v":"日韩"},{"n":"欧美","v":"欧美"}]},{"key":"lang","name":"语言","value":[{"n":"全部","v":""},{"n":"国语","v":"国语"},{"n":"英语","v":"英语"},{"n":"粤语","v":"粤语"},{"n":"闽南语","v":"闽南语"},{"n":"韩语","v":"韩语"},{"n":"日语","v":"日语"},{"n":"其它","v":"其它"}]},{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2023","v":"2023"},{"n":"2022","v":"2022"},{"n":"2021","v":"2021"},{"n":"2020","v":"2020"},{"n":"2019","v":"2019"},{"n":"2018","v":"2018"},{"n":"2017","v":"2017"},{"n":"2016","v":"2016"},{"n":"2015","v":"2015"},{"n":"2014","v":"2014"},{"n":"2013","v":"2013"},{"n":"2012","v":"2012"},{"n":"2011","v":"2011"},{"n":"2010","v":"2010"},{"n":"2009","v":"2009"},{"n":"2008","v":"2008"},{"n":"2007","v":"2007"},{"n":"2006","v":"2006"},{"n":"2005","v":"2005"},{"n":"2004","v":"2004"},{"n":"2003","v":"2003"},{"n":"2002","v":"2002"},{"n":"2001","v":"2001"},{"n":"2000","v":"2000"},{"n":"1999","v":"1999"},{"n":"1998","v":"1998"},{"n":"1997","v":"1997"},{"n":"1996","v":"1996"},{"n":"1995","v":"1995"},{"n":"1994","v":"1994"},{"n":"1993","v":"1993"},{"n":"1992","v":"1992"},{"n":"1991","v":"1991"},{"n":"1990","v":"1990"},{"n":"1989","v":"1989"},{"n":"1988","v":"1988"},{"n":"1987","v":"1987"},{"n":"1986","v":"1986"},{"n":"1985","v":"1985"},{"n":"1984","v":"1984"},{"n":"1982","v":"1982"}]}],
  10. "4":[{"key":"class","name":"剧情","value":[{"n":"全部","v":""},{"n":"情感","v":"情感"},{"n":"科幻","v":"科幻"},{"n":"热血","v":"热血"},{"n":"推理","v":"推理"},{"n":"搞笑","v":"搞笑"},{"n":"冒险","v":"冒险"},{"n":"萝莉","v":"萝莉"},{"n":"校园","v":"校园"},{"n":"动作","v":"动作"},{"n":"机战","v":"机战"},{"n":"运动","v":"运动"},{"n":"战争","v":"战争"},{"n":"少年","v":"少年"},{"n":"少女","v":"少女"},{"n":"社会","v":"社会"},{"n":"原创","v":"原创"},{"n":"亲子","v":"亲子"},{"n":"益智","v":"益智"},{"n":"励志","v":"励志"},{"n":"其他","v":"其他"}]},{"key":"area","name":"地区","value":[{"n":"全部","v":""},{"n":"国产","v":"国产"},{"n":"日本","v":"日本"},{"n":"欧美","v":"欧美"},{"n":"其他","v":"其他"}]},{"key":"lang","name":"语言","value":[{"n":"全部","v":""},{"n":"国语","v":"国语"},{"n":"英语","v":"英语"},{"n":"粤语","v":"粤语"},{"n":"闽南语","v":"闽南语"},{"n":"韩语","v":"韩语"},{"n":"日语","v":"日语"},{"n":"其它","v":"其它"}]},{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2023","v":"2023"},{"n":"2022","v":"2022"},{"n":"2021","v":"2021"},{"n":"2020","v":"2020"},{"n":"2019","v":"2019"},{"n":"2018","v":"2018"},{"n":"2017","v":"2017"},{"n":"2016","v":"2016"},{"n":"2015","v":"2015"},{"n":"2014","v":"2014"},{"n":"2013","v":"2013"},{"n":"2012","v":"2012"},{"n":"2011","v":"2011"},{"n":"2010","v":"2010"},{"n":"2009","v":"2009"},{"n":"2008","v":"2008"},{"n":"2007","v":"2007"},{"n":"2006","v":"2006"},{"n":"2005","v":"2005"},{"n":"2004","v":"2004"},{"n":"2003","v":"2003"},{"n":"2002","v":"2002"},{"n":"2001","v":"2001"},{"n":"2000","v":"2000"},{"n":"1999","v":"1999"},{"n":"1998","v":"1998"},{"n":"1997","v":"1997"},{"n":"1996","v":"1996"},{"n":"1995","v":"1995"},{"n":"1994","v":"1994"},{"n":"1993","v":"1993"},{"n":"1992","v":"1992"},{"n":"1991","v":"1991"},{"n":"1990","v":"1990"},{"n":"1989","v":"1989"},{"n":"1988","v":"1988"},{"n":"1987","v":"1987"},{"n":"1986","v":"1986"},{"n":"1985","v":"1985"},{"n":"1984","v":"1984"},{"n":"1982","v":"1982"}]}],
  11. "12":[{"key":"class","name":"剧情","value":[{"n":"全部","v":""},{"n":"古装","v":"古装"},{"n":"战争","v":"战争"},{"n":"青春偶像","v":"青春偶像"},{"n":"喜剧","v":"喜剧"},{"n":"家庭","v":"家庭"},{"n":"犯罪","v":"犯罪"},{"n":"动作","v":"动作"},{"n":"奇幻","v":"奇幻"},{"n":"剧情","v":"剧情"},{"n":"历史","v":"历史"},{"n":"经典","v":"经典"},{"n":"乡村","v":"乡村"},{"n":"情景","v":"情景"},{"n":"商战","v":"商战"},{"n":"网剧","v":"网剧"},{"n":"其他","v":"其他"}]},{"key":"area","name":"地区","value":[{"n":"全部","v":""},{"n":"大陆","v":"大陆"},{"n":"香港","v":"香港"},{"n":"台湾","v":"台湾"}]},{"key":"lang","name":"语言","value":[{"n":"全部","v":""},{"n":"国语","v":"国语"},{"n":"英语","v":"英语"},{"n":"粤语","v":"粤语"},{"n":"闽南语","v":"闽南语"},{"n":"韩语","v":"韩语"},{"n":"日语","v":"日语"},{"n":"法语","v":"法语"},{"n":"德语","v":"德语"},{"n":"其它","v":"其它"}]},{"key":"year","name":"年份","value":[{"n":"全部","v":""},{"n":"2023","v":"2023"},{"n":"2022","v":"2022"},{"n":"2021","v":"2021"},{"n":"2020","v":"2020"},{"n":"2019","v":"2019"},{"n":"2018","v":"2018"},{"n":"2017","v":"2017"},{"n":"2016","v":"2016"},{"n":"2015","v":"2015"},{"n":"2014","v":"2014"},{"n":"2013","v":"2013"},{"n":"2012","v":"2012"},{"n":"2011","v":"2011"},{"n":"2010","v":"2010"},{"n":"2009","v":"2009"},{"n":"2008","v":"2008"},{"n":"2007","v":"2007"},{"n":"2006","v":"2006"},{"n":"2005","v":"2005"},{"n":"2004","v":"2004"},{"n":"2003","v":"2003"},{"n":"2002","v":"2002"},{"n":"2001","v":"2001"},{"n":"2000","v":"2000"},{"n":"1999","v":"1999"},{"n":"1998","v":"1998"},{"n":"1997","v":"1997"},{"n":"1996","v":"1996"},{"n":"1995","v":"1995"},{"n":"1994","v":"1994"},{"n":"1993","v":"1993"},{"n":"1992","v":"1992"},{"n":"1991","v":"1991"},{"n":"1990","v":"1990"},{"n":"1989","v":"1989"},{"n":"1988","v":"1988"},{"n":"1987","v":"1987"},{"n":"1986","v":"1986"},{"n":"1985","v":"1985"},{"n":"1984","v":"1984"},{"n":"1982","v":"1982"}]}]
  12. },
  13. detailUrl:'/detail?vod_id=fyid',
  14. searchUrl: '/search?text=**&pg=fypage',
  15. searchable: 2,
  16. quickSearch: 0,
  17. filterable:1,//是否启用分类筛选,
  18. headers:{'User-Agent':'okhttp/4.1.0'},
  19. timeout:5000,
  20. // 分类筛选 /api.php/app/nav || /xgapp.php/v1/nav || /api.php/v1.vod/types
  21. class_name:'短剧&电影&连续剧&综艺&动漫&纪录片&4K影片',
  22. class_url:'12&1&2&3&4&5&13',
  23. play_parse:true,
  24. lazy:`js:
  25. let play_Url = '';
  26. let purl = '';
  27. if (/\\.m3u8|\\.mp4/.test(input)) {
  28. input = {
  29. jx: 0,
  30. url: input,
  31. parse: 0
  32. }
  33. } else if (/,/.test(input) && /url=/.test(input)) {
  34. input = input.split('url=');
  35. play_Url = input[0].split(',')[0];
  36. input = {
  37. jx: 0,
  38. url: input[1],
  39. playUrl: play_Url,
  40. parse: 1
  41. }
  42. } else if (/url=|id=/.test(input)) {
  43. input = {
  44. jx: 0,
  45. url: JSON.parse(request(input)).url,
  46. parse: 0
  47. }
  48. } else if (/youku|iqiyi|v\\.qq\\.com|pptv|sohu|le\\.com|1905\\.com|mgtv|bilibili|ixigua/.test(input)) {
  49. play_Url = /bilibili/.test(input) ? 'https://jx.xmflv.com/?url=' : 'https://jx.777jiexi.com/player/?url='; // type0的parse
  50. // play_Url = /bilibili/.test(input) ? 'https://jx.xmflv.com/?url=' : 'json:http://pandown.pro/app/kkdy.php?url='; // type1的parse可加'json:'直接解析url (除了蜂蜜的'影视TV',其它的壳皆可用)
  51. input = {
  52. jx: 0,
  53. url: input,
  54. playUrl: play_Url,
  55. parse: 1,
  56. header: JSON.stringify({
  57. 'user-agent': 'Mozilla/5.0',
  58. }),
  59. }
  60. } else if (/^YuMi/.test(input)) {
  61. purl = JSON.parse(request("http://110.42.3.71:5000/api/jiexi/xg?Key=IljsrKnj7T0M38IEWh&url=" + input)).url;
  62. input = {
  63. jx: 0,
  64. url: purl,
  65. parse: 0
  66. }
  67. } else if (/^znjson/.test(input)) {
  68. purl = JSON.parse(request("https://wpjx.chanchuan.top/znjsonapi.php?url=" + input)).url;
  69. input = {
  70. jx: 0,
  71. url: purl,
  72. parse: 0
  73. }
  74. } else {
  75. input
  76. }
  77. `,
  78. limit:6,
  79. // 图片来源:'@Referer=https://api.douban.com/@User-Agent=Mozilla/5.0%20(Windows%20NT%2010.0;%20Win64;%20x64)%20AppleWebKit/537.36%20(KHTML,%20like%20Gecko)%20Chrome/113.0.0.0%20Safari/537.36',
  80. 推荐:`js:
  81. let d = [];
  82. let jsondata = [];
  83. let videoList = [];
  84. if (/v1\\.vod/.test(HOST)) {
  85. if(HOST.endsWith('/')){
  86. jsondata = JSON.parse(request(HOST + 'vodPhbAll'));
  87. } else {
  88. jsondata = JSON.parse(request(HOST + '/vodPhbAll'));
  89. }
  90. videoList = jsondata.data.list;
  91. } else {
  92. if(HOST.endsWith('/')){
  93. jsondata = JSON.parse(request(HOST + 'index_video'));
  94. } else {
  95. jsondata = JSON.parse(request(HOST + '/index_video'));
  96. }
  97. videoList = /xgapp/.test(HOST) ? jsondata.data : jsondata.list;
  98. }
  99. // log('videoList =========> '+stringify(videoList));
  100. videoList.forEach((it,idex) => {
  101. let vlist = /v1\\.vod/.test(HOST) ? videoList[idex].vod_list : videoList[idex].vlist ;
  102. vlist.forEach(it => {
  103. d.push({
  104. url:it.vod_id,
  105. title:it.vod_name,
  106. img:it.vod_pic.startsWith('http') ? it.vod_pic : it.vod_pic.startsWith('//') ? 'https:' + it.vod_pic : it.vod_pic.startsWith('/') ? getHome(HOST) + it.vod_pic : getHome(HOST) + '/' + it.vod_pic,
  107. desc:it.vod_remarks,
  108. });
  109. });
  110. });
  111. setResult(d);
  112. `,
  113. 一级:`js:
  114. let d = [];
  115. let jsondata = [];
  116. let videoList = [];
  117. if (/v1\\.vod/.test(HOST)) {
  118. input = input.replace('video','v1.vod').replace('tid','type').replace('pg=','page=');
  119. jsondata = JSON.parse(request(input));
  120. videoList = jsondata.data.list;
  121. } else {
  122. input = HOST + '/'+ input.split('/')[4];
  123. jsondata = JSON.parse(request(input));
  124. videoList = jsondata.list || jsondata.data;
  125. }
  126. // log('videoList =========> '+stringify(videoList));
  127. videoList.forEach(it => {
  128. d.push({
  129. url:it.vod_id,
  130. title:it.vod_name,
  131. img:it.vod_pic.startsWith('http') ? it.vod_pic : it.vod_pic.startsWith('//') ? 'https:' + it.vod_pic : it.vod_pic.startsWith('/') ? getHome(HOST) + it.vod_pic : getHome(HOST) + '/' + it.vod_pic,
  132. desc:it.vod_remarks,
  133. });
  134. });
  135. setResult(d);
  136. `,
  137. 二级:`js:
  138. if (/v1\\.vod/.test(HOST)) {
  139. input = HOST + '/'+ input.split('/')[3];
  140. } else {
  141. input = HOST + '/'+ input.split('/')[3].replace('detail','video_detail').replace('vod_id','id');
  142. }
  143. try {
  144. let html = request(input);
  145. html = JSON.parse(html);
  146. let node = /xgapp/.test(HOST) ? html.data.vod_info : html.data;
  147. VOD = {
  148. vod_id: node.vod_id,
  149. vod_name: node.vod_name,
  150. vod_pic: node.vod_pic,
  151. type_name: node.vod_class,
  152. vod_year: node.vod_year,
  153. vod_area: node.vod_area,
  154. vod_remarks: node.vod_remarks,
  155. vod_actor: node.vod_actor,
  156. vod_director: node.vod_director,
  157. vod_content: node.vod_content.strip()
  158. };
  159. if (typeof play_url === 'undefined') {
  160. var play_url = ''
  161. }
  162. var name = {
  163. 'bfzym3u8': '暴风',
  164. '1080zyk': '优质',
  165. 'kuaikan': '快看',
  166. 'lzm3u8': '量子',
  167. 'ffm3u8': '非凡',
  168. 'haiwaikan': '海外看',
  169. 'gsm3u8': '光速',
  170. 'zuidam3u8': '最大',
  171. 'bjm3u8': '八戒',
  172. 'snm3u8': '索尼',
  173. 'wolong': '卧龙',
  174. 'xlm3u8': '新浪',
  175. 'yhm3u8': '樱花',
  176. 'tkm3u8': '天空',
  177. 'jsm3u8': '极速',
  178. 'wjm3u8': '无尽',
  179. 'sdm3u8': '闪电',
  180. 'kcm3u8': '快车',
  181. 'jinyingm3u8': '金鹰',
  182. 'fsm3u8': '飞速',
  183. 'tpm3u8': '淘片',
  184. 'lem3u8': '鱼乐',
  185. 'dbm3u8': '百度',
  186. 'tomm3u8': '番茄',
  187. 'ukm3u8': 'U酷',
  188. 'ikm3u8': '爱坤',
  189. 'hnzym3u8': '红牛资源',
  190. 'hnm3u8': '红牛',
  191. '68zy_m3u8': '68',
  192. 'kdm3u8': '酷点',
  193. 'bdxm3u8': '北斗星',
  194. 'qhm3u8': '奇虎',
  195. 'hhm3u8': '豪华',
  196. 'kbm3u8': '快播'
  197. };
  198. let episodes = /v1\\.vod/.test(HOST)?node.vod_play_list:node.vod_url_with_player;
  199. if (episodes != '') {
  200. let playMap = {};
  201. let arr = [];
  202. episodes.forEach(ep => {
  203. let from = [];
  204. if (/v1\\.vod/.test(HOST)) {
  205. from = ep.player_info.from||ep.player_info.show||ep.from||ep.show;
  206. } else {
  207. from = ep.code||ep.name;
  208. }
  209. if (!playMap.hasOwnProperty(from)) {
  210. playMap[from] = []
  211. }
  212. let parse_api = '';
  213. if (/v1\\.vod/.test(HOST)) {
  214. parse_api = ep.player_info.parse != null ? ep.player_info.parse : ep.player_info.parse2;
  215. // parse_api = /,/.test(parse_api) ? parse_api.split(',')[1] : parse_api;
  216. } else {
  217. parse_api = ep.parse_api;
  218. }
  219. log('parse_api =========> '+parse_api);
  220. if (parse_api != null && !/\\.m3u8|\\.mp4/.test(ep.url)) {
  221. parse_api = parse_api.replaceAll('..','.') ;
  222. ep.url = ep.url.replaceAll('$','$'+parse_api);
  223. }
  224. if (from != null) playMap[from].push(ep.url)
  225. });
  226. for (var key in playMap) {
  227. if ('bfzym3u8' == key) {
  228. arr.push({
  229. flag: name[key],
  230. url: playMap[key],
  231. sort: 1
  232. })
  233. } else if ('1080zyk' == key) {
  234. arr.push({
  235. flag: name[key],
  236. url: playMap[key],
  237. sort: 2
  238. })
  239. } else if ('kuaikan' == key) {
  240. arr.push({
  241. flag: name[key],
  242. url: playMap[key],
  243. sort: 3
  244. })
  245. } else if ('lzm3u8' == key) {
  246. arr.push({
  247. flag: name[key],
  248. url: playMap[key],
  249. sort: 4
  250. })
  251. } else if ('ffm3u8' == key) {
  252. arr.push({
  253. flag: name[key],
  254. url: playMap[key],
  255. sort: 5
  256. })
  257. } else if ('snm3u8' == key) {
  258. arr.push({
  259. flag: name[key],
  260. url: playMap[key],
  261. sort: 6
  262. })
  263. } else if ('qhm3u8' == key) {
  264. arr.push({
  265. flag: name[key],
  266. url: playMap[key],
  267. sort: 7
  268. })
  269. } else {
  270. arr.push({
  271. flag: name[key] ? name[key] : key,
  272. url: playMap[key],
  273. sort: 8
  274. })
  275. }
  276. }
  277. arr.sort((a, b) => a.sort - b.sort);
  278. let playFrom = [];
  279. let playList = [];
  280. arr.map(val => {
  281. if (!/undefined/.test(val.flag)) {
  282. playFrom.push(val.flag);
  283. playList.push(val.url);
  284. }
  285. })
  286. VOD.vod_play_from = playFrom.join('$$$');
  287. VOD.vod_play_url = playList.join('$$$');
  288. } else {
  289. VOD.vod_play_from = node.vod_play_from;
  290. VOD.vod_play_url = node.vod_play_url;
  291. }
  292. } catch (e) {
  293. log("获取二级详情页发生错误:" + e.message);
  294. }
  295. `,
  296. 搜索:`js:
  297. let d = [];
  298. let jsondata = [];
  299. let videoList = [];
  300. if (/v1\\.vod/.test(HOST)) {
  301. input = (HOST + '/'+ input.split('/')[3]).replace('/search','').replace('text=','wd=').replace('pg=','page=');
  302. jsondata = JSON.parse(request(input));
  303. videoList = jsondata.data.list;
  304. } else {
  305. input = HOST + '/'+ input.split('/')[3]
  306. jsondata = JSON.parse(request(input));
  307. videoList = jsondata.list || jsondata.data;
  308. }
  309. // log('videoList =========> '+stringify(videoList));
  310. videoList.forEach(it => {
  311. d.push({
  312. url:it.vod_id,
  313. title:it.vod_name,
  314. img:it.vod_pic.startsWith('http') ? it.vod_pic : it.vod_pic.startsWith('//') ? 'https:' + it.vod_pic : it.vod_pic.startsWith('/') ? getHome(HOST) + it.vod_pic : getHome(HOST) + '/' + it.vod_pic,
  315. desc:it.vod_remarks,
  316. });
  317. });
  318. setResult(d);
  319. `,
  320. }